import axios from 'axios'
class hotspot {
  getnews() {
    return axios.get("http://127.0.0.1:8888/hotdot/hotnews")
  }
  getnewsinfo(id) {
    return axios.get(`http://127.0.0.1:8888/hotdot/mainwords/${id}`)
  }
  getnewsimg(id) {
    return axios.get(`http://127.0.0.1:8888/hotdot/mainwordsimg/${id}`)
  }
  getvideolist() {
    return axios.get(`http://127.0.0.1:8888/hotdot/video`)
  }
  getvideo(id) {
    return axios.get(`http://127.0.0.1:8888/hotdot/video/${id}`)
  }
}

export default new hotspot